﻿using System;
using System.Collections.Generic;
using System.Text;
using Kitware.VTK;

namespace Fu3DEngine
{
    /// <summary>
    /// 用于把主地形切割掉
    /// </summary>
   public class TextureInfo
    {

       /// <summary>
       /// 切割的坐标，盒子切割，圆切割，多边形切割等，目前只支持盒子切割
       /// </summary>
     public  double wsPointX {get;set;}

     public double wsPointY { get; set; }
     public double enPointX { get; set; }
     public double enPointY { get; set; }

       public TextureInfo(double wsPointX, double wsPointY, double enPointX, double enPointY)
       {
           this.wsPointX = wsPointX;
           this.wsPointY = wsPointY;
           this.enPointX = enPointX;
           this.enPointY = enPointY;


           m_Texture = vtkTexture.New();
           m_Texture.RepeatOff();


       }

        vtkImageData m_TextureImage;
        public vtkImageData TextureImage 
       {
           get 
           { return m_TextureImage; 
           }

           set
           {
               m_TextureImage = value;
               m_Texture.SetInput(m_TextureImage) ;
           } 
       }

        vtkTexture m_Texture ;
       
        public vtkTexture Texture 
        { 
         get
            { return m_Texture;}
             
        }
      

    }
}
